<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib prefix="wf" uri="/augurit-wf"%>

<%@ include file="/common/meta.jsp"%>
<%@ include file="/common/meta_ext.jsp"%>
<%@ include file="/wf/public/meta_wf.jsp"%>
<%@page import="com.augurit.common.system.web.auth.form.LoginUserForm"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
 %>
 <%LoginUserForm form=(LoginUserForm)request.getSession().getAttribute("SES_LOGIN_USER"); %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>预览处置证</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<style type="text/css">
			.titleCss{
				font-size:330%;
				text-align:center;
				font-weight: bold;
			}
			.justifyCss{
				width:30%;
				text-align:justify;
				text-justify:distribute-all-lines;
				text-align-last:justify;
			}
			.tdCss{
				font-size:200%;
				font-weight: bold;
			}
			.inputNoborder {
			    FONT-SIZE: 30px;
			    FONT-FAMILY: 宋体;
			    BORDER-RIGHT: #FFFFFF 1px solid;
			    BORDER-TOP: #FFFFFF 1px solid;
			    BORDER-LEFT: #FFFFFF 1px solid;
			    BORDER-BOTTOM: #FFFFFF 1px solid;
			}
			.bb{
				margin-left:80px;
			}
		</style>
		 <script src="${ctx}/common/apabiPrint/js/gaizhang.js" type="text/javascript"></script>
		 <script src="${ctx}/resources/js/ext/adapter/ext/ext-base.js" type="text/javascript"></script>
         <script src="${ctx}/resources/js/ext/ext-all.js" type="text/javascript"></script>
         <script src="${ctx}/gzcgwsp/resources/js/YwUtil.js" type="text/javascript"></script>
	</head>
	<script type="text/javascript">
          Ext.onReady(function(){
            var hjmc=document.getElementById("hjmc").value;
            if (hjmc=="jbrsj"){//经办人办结改变
             // document.getElementById("printzs").style.display='none';
              document.getElementById("savezs").style.display='block';
              for (var i = 0; i < document.forms[0].elements.length; i++) {
                    var element = document.forms[0].elements[i];
                    if(element.name !="zsbh" && element.name !="jyfw" && element.name !="endyear" && element.name !="endmonth" && element.name !="endday" && element.name !="startyear" && element.name !="startmonth" && element.name !="startday" ){
                     element.readOnly= true; 
                    }
               }
            }else if(hjmc=="dzgz"){//打印设置为不可编辑
              document.getElementById("printzs").style.display='block';
             // document.getElementById("savezs").style.display='none';
              for (var i = 0; i < document.forms[0].elements.length; i++) {
                    var element = document.forms[0].elements[i];
                     element.readOnly= true; 
               }
            } 
         });
        
        function printCzz(){
            var url = '${ctx}/yw-yn-jzfqwczz-xn!printZs.action?id='+${id} +
             '&templateCode=jzfqwczzpf_xz&fileCode=xzxkjds';
             YwUtil.openWin({url: url});
        }
        
        function saveCzz2(){
        	var templateCode = '${templateCode}';
        	var url;
        	if(templateCode == 'jzfqwczzxn_xz'){//新增
        		url = '${ctx}/yw-yn-jzfqwczz-xn!saveCzz.action';
        	}else if(templateCode == 'jzfqwczzxn_bg'){//变更
        		url = '${ctx}/yw-yn-jzfqwczz-xnbg!saveCzz.action';
        	}else{//延期
        		url = '${ctx}/yw-yn-jzfqwczz-xnyq!saveCzz.action';
        	}
            var datenow = new Date();
           	Ext.Ajax.request({
              method:'post',
              url:url,
              params:{
                'id':document.getElementById("czzId").value,
                'zsbh':document.getElementById("zsbh").value,
                'zsno':document.getElementById("zsno").value,
                'zsrq':datenow,
                'zsksrq':document.getElementById("zsksrq").value,
                'zsjsrq':document.getElementById("zsjsrq").value,
                'fzrq':document.getElementById("fzrq").value,
                'fzdw':document.getElementById("fzdw").value,
                'pfczl':document.getElementById("pfczl").value
              },
              success:function(response){
                 var result=response.responseText;
                 if(result=="true"){                
                       alert("保存成功");
                 }else{
                     alert("保存失败！");
                 }
              },
              failure: function() {
                alert("保存失败！");
             }, 
              scope:this
           });
            
        }

        </script>
        <script type="text/javascript">  
		var contextpath="<%=basePath%>";
		var fileSavePath=getPathBySystem(); 
		var basepath="${ctx}";
		//根据操作系统用不同的路径
		function getPathBySystem(){
		     var path="";
		     var ua = navigator.userAgent.toLowerCase();
		     if(ua.indexOf("linux")>=0){
		        path="/usr/local/temp";
		     }else{
		        path="C:\\TEMP\\";
		     }
		    return path;
		}
		
		//盖章按钮
        function gzJyxkzs(){
           var chinesename = document.getElementById("sqdw").value+
           					document.getElementById("acceptNo").value+"许可证.xls";
           
           var filepath=contextpath+"/"+document.getElementById("templateFilePath").value;
  		   var filename = filepath.substring(filepath.lastIndexOf("/")+1);
  		   TransUpload(filename,chinesename,filepath);
  		   
  		   
        }
    
		function TransUpload(result,chinesename,filepath){
			var newpath=MakeWord(result,chinesename,filepath);// 打开word ，把它保存在D盘，相当于下载
			var DocName, CebName, LogName, IniName;
			var DocNameLen;
			var DocNameWONLen;
			var cebtail;
		//	DocName = NewDocForm.OriginalFile.value;
		 	DocName =newpath;
			DocNameLen = DocName.length;
			DocNameWONLen = DocName.lastIndexOf(".") - 1;
			if (DocNameWONLen == -1){
				DocNameWONLen = DocNameLen;
			}else{
				cebtail = DocName.substring(DocNameWONLen+2, DocNameLen);
			}
			if (cebtail.toLowerCase() == "ceb"){
				CebName = DocName;
			}else{
				CebName = DocName.substring(0, DocNameWONLen+1) + ".ceb";
			}
			
			LogName = DocName.substring(0, DocNameWONLen+1) + ".log";
			IniName = DocName.substring(0, DocNameWONLen+1) + ".ini";
			if (DocName != CebName){
				if (!(transMaker(DocName, CebName, LogName, IniName))){// 格式转换
					alert("格式转换失败，请重试！");
					return false;
				}		
			}
			else{
				alert("当前格式为ceb格式！");
			}
			var f=newpath.substring(0,newpath.lastIndexOf("."))+".ceb";
		
			Stamp_onclick(f);//盖章
			 var ieflag=checkIeVersion();
			  if(ieflag){
			 	//document.getElementById("t1").value=f;
				//callSet(fileTitle);//上传
				//Ext.getBody().mask("附件上传中");
		 		fileupload(f,'${id}','${templateCode}',chinesename);
		  }else{
		 	//Ext.getBody().mask("附件上传中");
		 	fileupload(f,'${id}','${templateCode}',chinesename);
		  }
			return true;

		}
			//弹出上传文件的窗口
	function fileWin(chinesename,uploadName){
		var ajid='${id}';
		var templateCode='${templateCode}';
		var username='<%=form.getUser().getUserName() %>';
		var dotIndex =uploadName.lastIndexOf(".");
		if (dotIndex < 0) dotIndex = uploadName.length;
		var attacheName = chinesename;
		var attacheType = uploadName.substring(dotIndex + 1);
		new Ext.Window({
		    id        : 'fileWin',
		    title     : '选择证书',
		    width     : 450,
		    height    : 150,
		    modal     : true,
		    plain     : true,
		    resizeable: false,
	        html: '<br>' +
	       '<form action="${ctx}/yw-com-print!uploadAttach.action"  enctype="multipart/form-data" id="fileform" name="fileform" method="post" target="upload-target">' +
	       '<input type="hidden" name="templateCode" value="'+templateCode +'"/>'+
	        '<input type="hidden" name="ajid" value="' +ajid+'"/>'+
	         '<input type="hidden" name="attacheName" value="' +attacheName+'"/>'+
	         '<input type="hidden" name="filetype" value="' +attacheType+'"/>'+
	         '<input type="hidden" name="username" value="' +username+'"/>'+
	        '<table width="100%" border="0">' +
	        '    <tr>' +
	        '        <td align="right" height="25">选择证件：</td>' +
	        '        <td colspan="3"><input type="file" id="attacheBrow" name="attach"  size="35" class="tpl_list_ui"/></td>' +
	        '    </tr>' +
	        '    <tr>' +
	        '        <td colspan="4" align="center">&nbsp;</td>' +
	        '    </tr>' +
	        '    <tr>' +
	        '        <td colspan="4" align="center">' +
	        '            <input type="button" value="上  传" onclick="uploadFile();" class="tpl_list_ui"/>' +
	        '            &nbsp;&nbsp;&nbsp;&nbsp;' +
	        '            <input type="button" value="取  消" onclick="Ext.getCmp(\'fileWin\').hide();" class="tpl_list_ui"/>' +
	        '        </td>' +
	        '    </tr>' +
	        '</table>' +
	        '<iframe name="upload-target" style="display:none;"></iframe>' +
	        '</form>' +
	    ''
	  }).show();
	}

	function uploadFile(){
	  document.getElementById("fileform").submit();
	}
		
		//格式转换
		function transMaker(DocName, CebName, LogName, IniName){
			var DTracker;
			DTracker = new ActiveXObject("MakerCom.MakerExt.1");
			var nRet;
			var Error;
			//alert("正转换文件，请稍候......");		
			nRet = DTracker.BeginMaker("");
			if (nRet != 0){
				alert(DTracker.GetErrorMessage(nRet));		
				delete DTracker;
				return false;
			}		
		    //alert("开始文档格式转换......请稍后!");		
			nRet = DTracker.SingleFileConvert(DocName, CebName, "标准模板", LogName, IniName);	
			if (nRet != 0){
				alert("MakerOcx transfer error!");
				nRet = DTracker.EndMaker();		
				delete DTracker;
				return false;
			}
			nRet = DTracker.EndMaker();
			if (nRet != 0){
				alert("MakerOcx End error!");		
				delete DTracker;
				return false;
			}	
			alert("格式转换完成！");	
			delete DTracker;
			return true;
		}
		//文件保存到本地
		 function MakeWord(filename,chinesename,filepath){
	        var WordApp=new ActiveXObject("Excel.Application");
	        var newpath=fileSavePath+chinesename;
	        var url=filepath;
        	WordApp.Visible = false;
	        var Doc=WordApp.Workbooks.open(url);
	        Doc.saveAs(newpath);
	        Doc.Close();
	        WordApp.Application.Quit();
	        return newpath;
 		}
		 		
		  //判断ie的版本，如果是6.0或者7.0返回true;
		function checkIeVersion(){
			var browser=navigator.appName 
			var b_version=navigator.appVersion 
			var version=b_version.split(";"); 
			var trim_Version=version[1].replace(/[ ]/g,""); 
			if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE6.0"){ 
				return true;
			} else if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE7.0"){ 
				return false;
			} else if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE8.0"){ 
				return false;
			} else if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE9.0") { 
				return false;
			} else if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE9.0") { 
				return false;
			}else if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE9.0") { 
				return false;
			}
			return true;
		}
 		
 		
        </script>
        <script language="vbs">
Function Stamp_onclick(strCEBFileName)    	
	Dim strErrMessage, lRet, objStampClientTool,g_AffixRegisterURL,g_SendPrintURL,UnitName
	g_AffixRegisterURL="http://172.16.253.169/StampServer/interfaces/background/AffixRegister.aspx"
	g_SendPrintURL="http://172.16.253.169/StampServer/extend/interfaces/SendPrint.aspx"
	UnitName=""

	lRet = ""
	strErrMessage = ""
	strCEBFileName = trim(strCEBFileName)

	if  0 = len(trim(strCEBFileName)) then
		Call Alert("请选择CEB文件！", vbExclamation, "请选择CEB文件！")
		Exit Function
	else
		if UCase(Right(Trim(strCEBFileName), 3)) <> "CEB" then
			Call Alert("只能选择CEB格式的文件！", vbExclamation, "只能选择CEB格式的文件！")
			CEBFileName.value = ""
			Exit Function
		end if                  	 	  
	end if

	set objStampClientTool  = CreateObject("StampClientTool.StampTool")

	' 本地可视化盖章	
	lRet = objStampClientTool.LocalSealStamp(strCEBFileName, UnitName, g_AffixRegisterURL, g_SendPrintURL)
	
	if lRet <> 0 then
		strErrMessage = objStampClientTool.GetErrorMessage()
        alert "盖章失败原因:" & strErrMessage
	end if

	Set objStampClientTool = Nothing	
End Function

Sub PreviewCEB(xuwei)
	Dim lRet
	lRet = DCreateGBForm1.ViewLocalCEB(xuwei)
End Sub

Sub PreviewNetCEB(xuwei)
	Dim lRet
	lRet = DCreateGBForm1.ViewNetCEB(xuwei)
End Sub

</script>
<script LANGUAGE="JavaScript">
//简化写法
function $(id){
    return document.getElementById(id);
}
//崋值方法(就是将文本框的值赋值file对象)
function set1(){
    //将text1中的值复制到剪贴板中
    window.clipboardData.setData('text',$('t1').value); 
    //创建Shell(需要添加到信任站点或解除未签名的ActiveX控件的禁用
    var   WshShell=new   ActiveXObject("WScript.Shell"); 
    //拿到焦点
    $('f1').focus();
    //Ctrl + A 操作
    WshShell.sendKeys("^a");
    //Ctrl + V 操作(sendKeys对于中文赋值操作显得无力,所以只能模拟键盘操作)
    WshShell.sendKeys("^v");
    
}

//给当前网页中四个file对象赋值的方法
function set(chinesename){
    //此处不要用循环,有几个就需要写几个setXX方法
    setTimeout("set1()",3000);
    setTimeout("upload('"+chinesename+"')",2000);
}
//检查是否赋值成功
function check(){
    //检查每个file对象是否为空 
    if($('f1').value.length > 0){
        //检查原对象的值的赋值对象的值是否相同
        if($('f1').value == $('t1').value){
            return true;
        }else{
            return false;
        }
    }else{
        return false;
    }
}
//赋值和file对象的检查
function setValues(chinesename){
    if(!check()){
        set(chinesename);
    }
}
//直接调用的赋值方法
function callSet(chinesename){
    //一定要用setInterval,而不能用循环(循环太快,会造成所有的值赋在一个file对象上)
    //setInterval('setValues()',1000);
    setValues(chinesename);    
}

function upload(chinesename){
	var attache = dwr.util.getValue('f1');
	var uploadName=dwr.util.getValue('f1').value;
	if (uploadName == '') { 
	     uploadName=$('t1').value;
	    //Ext.Msg.alert("提示!","上传失败!");return;
	}
	var ajid='${id}';
	var username='<%=form.getUser().getUserName() %>';
	var dotIndex =uploadName.lastIndexOf(".");
	if (dotIndex < 0) dotIndex = uploadName.length;
	var attacheName = chinesename;
	var attacheType = uploadName.substring(dotIndex + 1);
	var obj;	
	 obj ={
	  ajid:ajid,
	  username:username,
	  filename:attacheName,
	  filetype:attacheType
	  };	
		
	var params=Ext.encode(obj);
	FileUploadCntl.uploadDzgz(params, attache, function (result){
	       Ext.Msg.alert("提示!","上传成功!");
	       window.location.reload(); 
	       //viewStore.load();
	});
}

function resultValue(result){
 var faile = Ext.decode(result);
	if(faile.msg==false){
		Ext.Msg.alert("提示!","上传失败!");
	}else{
	    Ext.Msg.alert("提示!","上传成功!");
	    //删除c:temp下的文件
		deleteFile();
	    Ext.getCmp('fileWin').close();
	    //window.location.reload(); 
	}
}
//删除文件
function deleteFile(){     
   var wshShell =new ActiveXObject("WScript.Shell");          
    //fso用来处理文件和文件夹   
    var fso = new ActiveXObject("Scripting.FileSystemObject");   
       
    //path删除文件的路径   
    var path = "c:\\temp";   
    //如果指定的文件夹存在则返回 True ；否则返回 False   
    if(fso.FolderExists(path)){   
      try{   
           fso.DeleteFile(path+"\\*.*");  
       }catch(e){   
             alert(".ceb" + e.message);   
       }   
              
   }else{   
           alert("不存在这个目录："+path);   
        }   
   }  
   
   //查看盖章
 function viewgzJyxkzs(){
 	   var filename = document.getElementById("sqdw").value+
           			 document.getElementById("acceptNo").value+"许可证.xls";
       var id=document.getElementById("id").value;
       var templateCode='${templateCode}';
       var url="yw-com-print!veiwGzfile.action?ywId="+id+"&templateCode="+templateCode;
 	   Ext.Ajax.request({
	     url:url,
	     method:'POST',
	     timeout:900000,
	     method:'POST',
	      params:{
	        'filename': filename
	      },
	     success:function(response){
	         var msg=response.responseText;
	         if(msg!=""){
	        	 filename=filename.substring(0,filename.lastIndexOf("."));
				filename+=".ceb";
				filename=encodeURI(encodeURI(filename));
				window.location.href = "${ctx}/common/downloadfile.jsp?filepath="+msg+"&filename="+filename;  
			}else{
				alert('文件不存在！');
			}
		},
	    failure: function() {
	        Ext.Msg.alert('错误', '请求失败,请稍后重试'); 
	        myMask.hide();
	     } 
   });
 }
   
function  viewGzFile(path,filename){
	filename=filename.substring(0,filename.lastIndexOf("."));
	filename+=".ceb";
	var url="yw-com-print!checkFile.action?url="+path;
	//检查文件是否存在
	 Ext.Ajax.request({
	     url:url,
	     method:'POST',
	     timeout:900000,
	     method:'POST',
	     success:function(response){
	         var msg=response.responseText;
	         if(msg=="true"){
				window.location.href = "${ctx}/common/downloadfile.jsp?filepath="+path+"&filename="+filename;  
			}else{
				alert('文件不存在！');
			}
		},
	    failure: function() {
	        Ext.Msg.alert('错误', '请求失败,请稍后重试'); 
	        myMask.hide();
	     } 
   });
}
</script>
	<body>
		<form action="" method="POST" target="autoPrintIFrame">
		<input type="hidden" name="activName" id="hjmc" value="${activName}"/>
		<input type="hidden" name="id" id="czzId" value="${id}"/>
		<input type="hidden" name="sqdw" id="sqdw" value="${sqdw}"/>
		<input type="hidden" name="acceptNo" id="acceptNo" value="${acceptNo}"/>
		<input type="hidden" name="templateFilePath" id="templateFilePath" value="${templateFilePath}">
		<input type="hidden" name="templateCode" id="templateCode" value="${templateCode}"/>
		<input type="hidden" name="taskInstDbid" id="taskInstDbid" value="${taskInstDbid}"/>
		<table border="0" width="100%" style="margin-top:10px">
			<tr>
				<td width="3%">&nbsp;&nbsp;&nbsp;&nbsp;</td>
				<td width="45%">
					<table width="100%" border="0" align="center">
						<tr>
							<td>&nbsp;</td>
						</tr>
						<tr>
							<td class="titleCss"  align="center">广&nbsp;州&nbsp;市<br>建筑废弃物处置证（消纳）</td>
						</tr>
						<tr>
							<td align="center" style="font-size:120%;letter-spacing:4px;">
								<br/>
								NO：&nbsp;（<input name="zsno" id="zsno" value="${zsno }" class="inputNoborder" style="FONT-SIZE: 20px;width:100px;"/>）&nbsp;
								纳字第&nbsp;<input name="zsbh" id="zsbh" value="${zsbh }" class="inputNoborder" style="FONT-SIZE: 20px;width:100px;"/>号
							</td>
						</tr>
						<tr>
							<td class="titleCss"  align="center">
								<br/><br/>
							</td>
						</tr>
						<tr>
							<td style="font-size:120%;letter-spacing:4px;line-height:30px;FONT-FAMILY: 宋体;">
								&nbsp;&nbsp;&nbsp;&nbsp;根据《广州市建筑废弃物管理条例》，经审核，本工程符合建筑废弃物消纳处置的许可条件，准予发证。
							</td>
						</tr>
						<tr>
							<td class="titleCss"  align="center">
								<br/><br/><br/><br/>
							</td>
						</tr>
						<tr>
							<td align="right" style="font-size:120%;letter-spacing:4px;line-height:30px;FONT-FAMILY: 宋体;">
								发证单位：<input name="fzdw" id="fzdw" value="${fzdw }" class="inputNoborder" style="FONT-SIZE: 20px;width:250px;"/>
							</td>
						</tr>
						<tr>
							<td align="right" style="font-size:120%;letter-spacing:4px;line-height:30px;FONT-FAMILY: 宋体;">
								<input id="fzrq" name="fzrq" value="<s:date name='fzrq' format="yyyy年MM月dd日"/>" type="text" style="width:180" onclick="WdatePicker({skin:'ext', dateFmt:'yyyy年MM月dd日'});" class="textdocWdate"/>
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							</td>
						</tr>
					</table>
				</td>
				<td width="4%">&nbsp;&nbsp;&nbsp;&nbsp;</td>
				<td valign="top" width="45%">
					<table width="100%" border="1" align="center" bordercolor="black">
						<tr><td colspan="4"></td></tr>
						<tr height="30px">
							<td width="20%" align="center" style="font-size:120%;letter-spacing:4px;line-height:30px;FONT-FAMILY: 宋体;">建设单位</td>
							<td width="80%" colspan="3">${sqdw }</td>
						</tr>
						<tr height="30px">
							<td width="20%" align="center" style="font-size:120%;letter-spacing:4px;line-height:30px;FONT-FAMILY: 宋体;">联系人</td>
							<td width="20%">${jsdwLxr}</td>
							<td width="20%" align="center" style="font-size:120%;letter-spacing:4px;line-height:30px;FONT-FAMILY: 宋体;">联系电话</td>
							<td width="20%">${jsdwLxrLxdh}</td>
						</tr>
						<tr height="30px">
							<td width="20%" align="center" style="font-size:120%;letter-spacing:4px;line-height:30px;FONT-FAMILY: 宋体;">施工单位</td>
							<td width="80%" colspan="3">${sgdwGz}</td>
						</tr>
						<tr height="30px">
							<td width="20%" align="center" style="font-size:120%;letter-spacing:4px;line-height:30px;FONT-FAMILY: 宋体;">联系人</td>
							<td width="20%">${sgdwLxr}</td>
							<td width="20%" align="center" style="font-size:120%;letter-spacing:4px;line-height:30px;FONT-FAMILY: 宋体;">联系电话</td>
							<td width="20%">${sgdwLxrLxdh}</td>
						</tr>
						<tr height="30px">
							<td width="20%" align="center" style="font-size:120%;letter-spacing:4px;line-height:30px;FONT-FAMILY: 宋体;">工程名称</td>
							<td width="80%" colspan="3">${gcmc }</td>
						</tr>
						<tr height="30px">
							<td width="20%" align="center" style="font-size:120%;letter-spacing:4px;line-height:30px;FONT-FAMILY: 宋体;">工程地址</td>
							<td width="80%" colspan="3">${gcdz}</td>
						</tr>
						<tr height="30px">
							<td width="20%" align="center" style="font-size:120%;letter-spacing:4px;line-height:30px;FONT-FAMILY: 宋体;">许可范围</td>
							<td width="80%" colspan="3">消纳建筑废弃物</td>
						</tr>
						<tr height="30px">
							<td width="20%" align="center" style="font-size:120%;letter-spacing:4px;line-height:30px;FONT-FAMILY: 宋体;">消纳处置量</td>
							<td width="80%" colspan="3"><input id="pfczl" value="${pfczl }" style="width:100%"/></td>
						</tr>
						<tr height="30px">
							<td width="20%" align="center" style="font-size:120%;letter-spacing:4px;line-height:30px;FONT-FAMILY: 宋体;">有效期限</td>
							<td width="80%" colspan="3">
							<input type="text" name="zsksrq" id="zsksrq"  style="width:150px" value="<s:date name='zsksrq' format="yyyy年MM月dd日"/>" onclick="WdatePicker({skin:'ext', dateFmt:'yyyy年MM月dd日'});" type="text" class="textdocWdate" readonly/>
							
							&nbsp;&nbsp;
							
							至&nbsp;&nbsp;
							
							<input type="text" name="zsjsrq" id="zsjsrq"  style="width:150px" value="<s:date name='zsjsrq' format="yyyy年MM月dd日"/>" onclick="WdatePicker({skin:'ext', dateFmt:'yyyy年MM月dd日'});" type="text" class="textdocWdate" readonly/>
							</td>
						</tr>
						<tr height="30px">
							<td width="20%" align="center" style="font-size:120%;letter-spacing:4px;line-height:30px;FONT-FAMILY: 宋体;">备注</td>
							<td width="80%" colspan="3"><textarea rows="8" style="width:100%" style="font-size:120%;letter-spacing:4px;line-height:30px;FONT-FAMILY: 宋体;" readonly>${bz}</textarea></td>
						</tr>
					</table>
				</td>
				<td width="3%">&nbsp;&nbsp;&nbsp;&nbsp;</td>
			</tr>
			<tr>
				<td colspan="5" align="center" style="font-size:120%;letter-spacing:4px;line-height:30px;FONT-FAMILY: 宋体;">
					<br><br>
				</td>
			</tr>
			<tr>
				<td colspan="5" align="center" style="font-size:120%;letter-spacing:4px;line-height:30px;FONT-FAMILY: 宋体;">
					<input type="button" id="saveCzz" onclick="saveCzz2();" value="保&nbsp;&nbsp;存" style="width:100px;"/> 
					<input type="button" onclick="printCzz();"  id="printzs" value="打&nbsp;&nbsp;印" style="width:100px;"/>
					<input type="button" onclick="gzJyxkzs();"  id="gzxkz" value="盖&nbsp;&nbsp;章" style="width:100px;"/>
		            <input type="button" onclick="viewgzJyxkzs();"  id="viewgzfile" value="查看盖章" style="width:100px;"/>
					<input type="button" onclick="window.close();" value="关&nbsp;&nbsp;闭" style="width:100px;"/>
				</td>
			</tr>
		</table>
		<br><br>
		
		
		
		</form>
		<div id="autoPrintDiv" style="display:none;"><iframe height='1000' width='700' name='autoPrintIFrame'/></div>
	</body>
</html>